﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace QDT.Core.Projects
{
    /// <summary>
    /// 项目类型(企业信用贷，个人车贷)
    /// </summary>
    public class ProjectType : Entity, IAggregeRoot
    {
        public ProjectType()
        {

            IsEffect = true;
            IsDelete = false;
        }

        public ProjectType(string name, string brief, bool isEffect,
                            string icon)
            : this()
        {
            Name = name;
            Brief = brief;
            IsEffect = isEffect;
            Icon = icon;
        }

        /// <summary>
        /// 项目的类型名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 摘要
        /// </summary>
        public string Brief { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDelete { get; set; }

        /// <summary>
        /// 是否有效
        /// </summary>
        public bool IsEffect { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }

        /// <summary>
        /// 图标
        /// </summary>
        public string Icon { get; set; }


    }
}
